/**
 * Alibaba.com.cn Inc.
 * Copyright (c) 2004-2021 All Rights Reserved.
 */
package com.starlink.common.mybatisplus;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import org.springframework.stereotype.Component;

/**
 * @author zhanghong
 * @version CustomerIdGenerator.java, v 0.1 2022/11/15 22:50 下午 CustomerIdGenerator Exp $$
 */
@Component
public class CustomerIdGenerator implements IdentifierGenerator {

    @Override
    public Number nextId(Object entity) {
        // 填充自己的Id生成器，
        return IdGenerator.generateId();
    }
}
